<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/include/include.jsp" %>
<!DOCTYPE html>
<html lang="zn-ch">
<head>
    <title>用户管理</title>
</head>
<body class="theme-black">
<div class="am-g tpl-g">
    <!-- 顶部 -->
    <jsp:include page="../layout/head.jsp"/>
    <!-- 左侧菜单 -->
    <jsp:include page="../layout/leftMenu.jsp"/>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
    <div class="container-fluid am-cf">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
            <ol class="am-breadcrumb" style="margin-bottom: 0;">
                <li>系统管理</li>
                <li>
                    <a href="${ctx }/sys/user" class="active">用户管理</a>
                </li>
            </ol>
        </div>
        <div class="am-fr am-vertical-align" style="height: 40px;">
            <a href="${ctx }/sys/user/form?mode=1"
               class="am-btn am-btn-success am-radius am-btn-sm am-vertical-align-middle">添加用户</a>
        </div>
    </div>
    <section data-am-widget="accordion" class="am-accordion am-accordion-gapped" data-am-accordion='{  }'>
        <dl class="am-accordion-item am-active">
            <dt class="am-accordion-title">
                <i class="am-icon-search"></i> &nbsp;查询条件
            </dt>
            <dd class="am-accordion-bd am-collapse am-in">
                <div class="am-accordion-content">
                    <form id="searchForm" class="am-form-inline tpl-inline-form" style="margin-bottom: 0;" method="get">
                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-3 am-form-label">用户名：</label>
                            <input type="text" class="tpl-form-input input-sm" id="name" autocomplete="off">
                        </div>
                        &nbsp;&nbsp;
                        <button type="button" class="am-btn am-btn-default am-radius am-btn-xs"
                                onclick="submitForm(this);">提交
                        </button>
                    </form>
                </div>
            </dd>
        </dl>
    </section>
</div>
</body>
<script type="text/javascript">
    function submitForm(obj) {
        var $form = $(obj).closest('form');
        var name = $('#name').val();
        $form.attr('action', '${ctx}/sys/user/' + name);
        $form.submit();
    }
</script>
</html>